package Java继承;

public class Staff4 extends Person4{
    private double salary;
    public Staff4(String id,String name,String gender,double salary){
        super(id,name,gender);
        this.salary = salary;
    }
    public double getSalary(){return salary;}
    @Override
    public void showBasicInfo(){
        super.showBasicInfo();
        System.out.println("工资："+salary+"元");
    }
}
